from behave import *
from amodel import Amodel


@given(u'An Amodel exists')
def step_amodel_exists(context):
  assert type(context.amodel) is Amodel

@given(u'I put "{a_thing}" in a amodel')
def step_given_put_thing_into_amodel(context , a_thing):
  context.amodel.add(a_thing)
  assert context.amodel.thing == a_thing

@when(u'I switch the amodel on')
def step_when_switch_blender_on(context):
  context.amodel.switch_on()
  assert context.amodel.is_on

@then(u'it should transform into "{another_thing}"')
def step_then_should_transform_into(context , another_thing):
  assert context.amodel.result == another_thing
